<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/css/product/addProduct.css"/>
    <script src="/js/product/addProduct.js"></script>
<body>
    <div style="width: 100%">
        <div>
            <div>
                <div class="layui-card headerCenter">
                    <div class="layui-card-header backColor">
                        商品列表
                        <div class="btnRight" style="margin-bottom: 10px">
                            <button onclick="backOff()" type="button" class="layui-btn layui-btn layui-btn-sm">
                                <i class="layui-icon layui-icon-return"></i>
                                返回
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="box">
            <form class="layui-form" lay-filter="form" id="addProduct">
                <div class="layui-form-item">
                    <label class="layui-form-label">商品分类：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="classification" required lay-verify="required" id="classification" placeholder="书籍" disabled class="layui-input">
                        <a class="flo" href="javascript:findBookName()"><img src="/images/icon27.gif"/></a>
                    </div>
                </div>
                <div class="layui-form-item">
                    <span id="category" class="hide" style="margin-left: 24px">您当前选择的商品类别是：</span>
                </div>
                <input type="text" name="categroyId" required lay-verify="required" class="layui-input hide">
                <div class="layui-form-item">
                    <label class="layui-form-label">商品名称：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="productName" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-upload">
                        <label class="layui-form-label"><button type="button"  class="layui-btn" id="test1">上传图片</button></label>
                        <div class="uploadHeadImage" id="showBtn" class="layui-hide">

                        </div>
                        <input type="text" id="mainImage" name="mainImage" class="layui-input hide">
                    </div>

                </div>


                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">商品介绍：</label>
                    <div class="layui-input-block">
                        <textarea name="productDescription" required placeholder="请输入内容" class="layui-textarea" style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">商品标签：</label>
                    <div class="layui-input-block">
                        <textarea name="productLabel" required placeholder="请输入标签" class="layui-textarea" style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <laCbel class="layui-form-label">商品货号：</laCbel>
                    <div class="layui-input-inline">
                        <input type="text" name="productCode"  required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品售价：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="currentpriceProduct" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">关键字：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="searchKeywords" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品推荐：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="recommend"  name="recommend" value="2" title="新品" checked>
                        <input type="radio" lay-filter="recommend" name="recommend" value="3" title="推荐">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label>可用优惠券：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="discount" name="discount" value="2" title="否" checked>
                        <input type="radio" lay-filter="discount" name="discount" value="3" title="是">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">服务保证：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="ensure" name="ensure" value="2" title="无忧退货" checked>
                        <input type="radio" lay-filter="ensure" name="ensure" value="3" title="快速退款" >
                        <input type="radio" lay-filter="ensure" name="ensure" value="4" title="免费包邮" >
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" id="sub" lay-submit lay-filter="formDemo">完成，提交商品</button>
                        <button class="layui-btn" type="button" id="subUpload" style="display: none" >完成，提交商品</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
</html>